package com.winter.mapper;

import com.winter.model.FinFavInfo;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface FinFavInfoMapper {
    int deleteByPrimaryKey(Short id);

    int insert(FinFavInfo record);

    int insertSelective(FinFavInfo record);

    FinFavInfo selectByPrimaryKey(Short id);

    int updateByPrimaryKeySelective(FinFavInfo record);

    int updateByPrimaryKey(FinFavInfo record);

    List<FinFavInfo> favInfoList();

    Long selectFavKey(Long relaId);

    List<FinFavInfo> favInfoList(@Param("id") Long id, @Param("relaType") Integer relaType, @Param("relaChildType") Integer relaChildType, @Param("userNo") String userNo);

    Long get(@Param("id") Long id, @Param("type") String type, @Param("chiType") Integer chiType, @Param("userNo") String userNo);

    int delete(@Param("relaId") String relaId, @Param("relaType") String relaType, @Param("relaChildType") String relaChildType, @Param("userNo") String userNo);

    List<FinFavInfo> myCollect(@Param("userNo") String userNo, @Param("type") Integer type);
}